<?php  defined('SYSPATH') OR die('No direct script access.');

class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 {
 
	public function get_response()
	{
		$response = Response::factory();
 
		$view = View::factory('smarty3:errors/404');
 
		// We're inside an instance of Exception here, all the normal stuff is available.
		$view->message = $this->getMessage();
 
		$response->body($view->render());
 
		return $response;
	}
 
}